#include "GY_Variant.h"

GY_Variant::GY_Variant(QObject *parent) : QObject(parent), QVariant()
{

}

GY_Variant::GY_Variant(const GY_Variant &other) : QObject(other.parent())
{
    this->setValue((QVariant)other);
}

GY_Variant::~GY_Variant()
{

}

GY_Variant &GY_Variant::operator=(const QVariant &value)
{
    this->setValue(value);
    emit sendValueSig(value);
    return *this;
}

GY_Variant &GY_Variant::operator=(const GY_Variant &value)
{
    this->setValue((QVariant)value);
    return *this;
}
